<?php
/**
 * getStyles.php
 *
 * 获取请求的Javascript内容文件
 *
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://momoger.com/license
 *
 * @author  	Guya
 * @version    	1.0
 * @copyright  	Copyright © 2009 www.momoger.com All Rights Reserved.
 * @license    	http://momoger.com/license     New BSD License
 */

//输出信息头
header('Content-Type: javascrīpt/js;');

//当前路径
$pwd = dirname(__FILE__) . DIRECTORY_SEPARATOR;

//依次载入有效的文件
if (is_array($_GET) && count($_GET)) {
	foreach ($_GET as $js) {
		if (file_exists($pwd . $js)) {
			include( $pwd . $js );
		}
	}
}